<div class="cfg-header-tab">
    <span class="item {if $chooseid=='attr_attr'} on {/if}"    data-id="attr_attr"  onclick="changeTab(this)" >属性分类</span>
    <span class="item {if $chooseid=='attr_price'} on {/if}"  data-id="attr_price"  onclick="changeTab(this)"  >价格属性</span>
    <span class="item {if $chooseid=='attr_numconfig'} on {/if}" data-id="attr_numconfig"  onclick="changeTab(this)" >显示分类数量</span>
    <span class="item {if $chooseid=='period_time'} on {/if}" data-id="period_time"  onclick="changeTab(this)" >预约时段</span>
    <span class="item {if $chooseid=='people_set'} on {/if}" data-id="people_set"  onclick="changeTab(this)" >人群设置</span>
</div>
<script>
    function changeTab(obj) {
           if($(obj).hasClass('on'))
           {
               return false;
           }
           var id = $(obj).data('id');
           var url = SITEURL;
           switch (id)
           {
               case 'attr_attr':
                   url += 'ferry/admin/attrid/list/menuid/{$_GET['menuid']}';
                   break;
               case 'attr_price':
                   url += 'ferry/admin/ferry/price/menuid/{$_GET['menuid']}';
                   break;
               case 'attr_numconfig':
                   url += 'ferry/admin/attrid/attr_num_config/menuid/{$_GET['menuid']}';
                   break;
               case 'period_time':
                   url += 'ferry/admin/ferry/period_time/menuid/{$_GET['menuid']}';
                   break;
               case 'people_set':
                   url += 'ferry/admin/ferry/people_set/menuid/{$_GET['menuid']}';
                   break;
           }
           location.href = url;
    }
</script>